package com.zelma.consumer.feign;

import com.zelma.consumer.entity.RentbuyEntity;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "zelma-house")
public interface HouseFeign {
        @GetMapping("house/property/lostList")
        public List<RentbuyEntity> hostList();

        @GetMapping("/house/area/cityList")
        public List<RentbuyEntity> cityList();

        @GetMapping("house/area/getByAreaName")
        public List<String> getByAreaName(@RequestParam("aid") List<Integer> aid);


}
